home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <title>Search Form</title>
- <!--% WH_PROJECT_METATAGS %-->
- </head>
- <style>
- <!--
- body {margin:0;}
- -->
- </style>
- <body bgcolor="#c0c0c0">
- <script language="javascript" src="<!--%SF_VERSION_JS%-->"></script>
- <script language="javascript1.2" src="<!--%SF_MESSAGE_JS%-->"></script>
- <script language="javascript1.2" src="<!--%SF_PROXY_JS%-->"></script>
- <script language="javascript1.2" src="<!--%SF_UTILS_JS%-->"></script>
- <script language="javascript1.2" src="<!--%SF_WHFORM_JS%-->"></script>
- <script language="javascript1.2">
- <!--
- var gstrInput = "";
- function ftsLookup(bCR)
- {
- if (bCR)
- {
- var strInput = document.FtsInputForm.keywordField.value.toUpperCase();
- if (strInput != "") {
- var oMsg = new whMessage(WH_MSG_SEARCHFTSKEY, this, 1, strInput);
- if (!SendMessage(oMsg))
- {
- gstrInput = strInput;
- }
- else
- gstrInput = "";
- }
-
- if (gbMac) {
- document.FtsInputForm.keywordField.focus();
- }
- }
- return;
- }
-
- function beforeInit()
- {
- var oParam = new Object();
- oParam.sValue = "";
- var oMsg = new whMessage(WH_MSG_GETSEARCHS, this, 1, oParam);
- if (SendMessage(oMsg))
- {
- if (oParam.sValue != "" && oParam.sValue != "%%% WH_LNG_SearchPrompt %%%")
- {
- document.FtsInputForm.keywordField.value = oParam.sValue;
- gfunLookUp(true);
- }
- }
- init();
- }
-
- function window_unload()
- {
- UnRegisterListener2(this, WH_MSG_SHOWTOC);
- UnRegisterListener2(this, WH_MSG_SHOWIDX);
- UnRegisterListener2(this, WH_MSG_SHOWFTS);
- UnRegisterListener2(this, WH_MSG_SHOWGLO);
- UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
- UnRegisterListener2(this, WH_MSG_BACKUPSEARCH);
- }
-
- function onSendMessage(oMsg)
- {
- if (oMsg.nMessageId == WH_MSG_SHOWFTS)
- {
- document.FtsInputForm.keywordField.focus();
- }
- else if (oMsg.nMessageId == WH_MSG_SHOWIDX ||
- oMsg.nMessageId == WH_MSG_SHOWTOC ||
- oMsg.nMessageId == WH_MSG_SHOWGLO)
- {
- document.FtsInputForm.keywordField.blur();
- }
- else if (oMsg.nMessageId == WH_MSG_SEARCHTHIS)
- {
- if (oMsg.oParam != "%%% WH_LNG_SearchPrompt %%%")
- {
- document.FtsInputForm.keywordField.value = oMsg.oParam;
- gfunLookUp(true);
- }
- }
- else if (oMsg.nMessageId == WH_MSG_BACKUPSEARCH)
- {
- if (gstrInput)
- {
- oMsg.oParam = gstrInput;
- gstrInput = "";
- return false;
- }
- }
- return true;
- }
-
- if (window.gbWhForm)
- {
- RegisterListener2(this, WH_MSG_SHOWTOC);
- RegisterListener2(this, WH_MSG_SHOWIDX);
- RegisterListener2(this, WH_MSG_SHOWFTS);
- RegisterListener2(this, WH_MSG_SHOWGLO);
- RegisterListener2(this, WH_MSG_SEARCHTHIS);
- RegisterListener2(this, WH_MSG_BACKUPSEARCH);
- gfunLookUp = ftsLookup;
- gfunInit = null;
- gstrFormName = "FtsInputForm"
- gsTitle = "Type in the word(s) to search for:";
- <!--% WH_WEBSKIN_ReplaceMacros("gsTitle = \"%WH_CUR_LNG.FtsInputPrompt%\";"); %-->
- setGoImage1("%%%WT_DS_SEARCHFORM_GO%%%");
- <!--% WH_WEBSKIN_ReplaceMacros("setBackgroundcolor(\"%WH_WEBSKIN.fts.form.backgroundcolor%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setBackground(\"%WH_WEBSKIN.fts.form.background%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setBtnType(\"%WH_WEBSKIN.fts.form.mode%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setGoImage1(\"%WH_WEBSKIN.toolbars.btn.searchform.form.btn.image%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setGoImage2(\"%WH_WEBSKIN.fts.form.btn.image1%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setGoImage3(\"%WH_WEBSKIN.fts.form.btn.image2%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setGoText(\"%WH_CUR_LNG.FtsBtnText%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Title\", \"%WH_WEBSKIN.fts.form.title.font.name%\",\"%WH_WEBSKIN.fts.form.title.font.size%\",\"%WH_WEBSKIN.fts.form.title.font.color%\",\"%WH_WEBSKIN.fts.form.title.font.style%\",\"%WH_WEBSKIN.fts.form.title.font.weight%\",\"%WH_WEBSKIN.fts.form.title.font.decoration%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Normal\", \"%WH_WEBSKIN.fts.form.text.normal.font.name%\",\"%WH_WEBSKIN.fts.form.text.normal.font.size%\",\"%WH_WEBSKIN.fts.form.text.normal.font.color%\",\"%WH_WEBSKIN.fts.form.text.normal.font.style%\",\"%WH_WEBSKIN.fts.form.text.normal.font.weight%\",\"%WH_WEBSKIN.fts.form.text.normal.font.decoration%\");"); %-->
- <!--% WH_WEBSKIN_ReplaceMacros("setFont(\"Hover\", \"%WH_WEBSKIN.fts.form.text.hover.font.name%\",\"%WH_WEBSKIN.fts.form.text.hover.font.size%\",\"%WH_WEBSKIN.fts.form.text.hover.font.color%\",\"%WH_WEBSKIN.fts.form.text.hover.font.style%\",\"%WH_WEBSKIN.fts.form.text.hover.font.weight%\",\"%WH_WEBSKIN.fts.form.text.hover.font.decoration%\");"); %-->
- document.write(getFormHTML());
- writeFormStyle();
- window.onload = beforeInit;
- window.onunload=window_unload;
- }
- else
- document.location.reload();
- //-->
- </script>
- </body>
- </html>